﻿<?php


class MenuApp extends BaseApp
{
    function index()
    {

		if($GLOBALS['SCup']->SCup_user_checking == false)
		{
		$notice = &get_message(array('msg'=>'True!','url'=>SITE_URL,'title'=>'Notice'));
	    $notice ->display(); 

		}	   	
	    $appname_data = array();
        $module_list_data = $this->get_module_data();
		
        foreach($module_list_data as $key => $value)
		{
		 $appname_data[$key] = $value['name'];
		}
	
        $this->assign('appnamedata', $appname_data);
			    
        $this->assign('view_charset', VIEW_CHARSET);	
        $this->assign('page_title', SITE_TITLE);
        $this->assign('page_description', SITE_DESCRIPTION);
        $this->assign('page_keywords', SITE_KEYWORDS);	
		
        $this->assign('site_url',SITE_URL);
		
		$this->assign('username',$GLOBALS['SCup']->SCup_user_msg['data']['user_name']);
		
        $this->assign('web_view_dir',SITE_URL.'/admin/view/default/');
		
        $this->display('menu.view.php');
    }

	function get_module_data() 
	{
		return include (ROOT_PATH . '/data/module/module_list.php');
	}
  
  
}

?>